package com.java2007.hotel.service;

import com.java2007.hotel.pojo.User;

import java.sql.SQLException;

/**
 * @author Reckeys
 * @version V1.0
 * @date 2021/01/25
 **/
public interface UserService {
    /**
     * 用户登陆
     * @param userName
     * @param userPassword
     * @return
     */
    User userLogin(String userName,String userPassword) throws Exception;

    /**
     * 用户注册
     * @param user
     * @return
     */
    String userRegistere(User user) throws SQLException;

    /**
     * 查询用户名是否重复
     * @param userName
     * @return
     */
    int findUserReChecking(String userName) throws SQLException;
}
